﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MDV.Entities;

namespace MDV.Business
{
    class SearchByGoogle
    {

        public static void GoogleSearch(string txtGoogle, bool checkFirstUseGoogle)
        {
            string target = "http://www.google.com/search?q=" + txtGoogle;
            //Use no more than one assignment when you test this code. 
            try
            {
                if (txtGoogle != "" && checkFirstUseGoogle == true)
                    System.Diagnostics.Process.Start(target);
            }
            catch(Exception e)
            {
                Console.WriteLine(e.ToString());
            }
           
        }
    }
}

